package com.sixth.health.servict.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sixth.core.entity.PatientResult;
import com.sixth.core.vo.R;
import com.sixth.health.mapper.PatientResultMapper;
import com.sixth.health.servict.PatientResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: six-hospital-system
 * @description:
 * @author: 朱永奇
 * @create: 2024-09-07 15:44
 **/
@Service
public class PatientResultImpl extends ServiceImpl<PatientResultMapper, PatientResult> implements PatientResultService {
    @Autowired
    private PatientResultMapper patientResultMapper;

    @Override
    public R<List<PatientResult>> selectAll(String patientId) {
        List<PatientResult> patientResults = patientResultMapper.selectList(patientId);
        return R.ok(patientResults);
    }
}
